import { createApp } from 'vue'
import App from '@/App.vue'
// import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import 'virtual:svg-icons-register'
import globalComponentsPlugin from '@/components/index'
//引入仓库
import store from './store/index'

//引入全局样式
import '@/styles/index.scss'

import router from './router'
//引入路由鉴权
import './router/permission.ts'

const app = createApp(App)
//使用仓库
app.use(store)
//使用路由
app.use(router)

//使用全局组件化插件
app.use(globalComponentsPlugin)

// app.use(ElementPlus, {
//   locale: zhCn,
// })
app.mount('#app')
